﻿using System;
using System.Collections.Generic;
using System.Text;

namespace USERS.CYT369.COM.MODELS
{
    public class WcfUser : BaseObject<long>
    {
        public WcfUser(SysUser user)
        {
            if (user != null)
            {
                this.Id = user.Id;
                this.UserName = user.UserName;
                this.UniqueCode = user.UniqueCode;
                this.FullName = user.FullName;
                this.NickName = user.NickName;
                this.Gender = user.Gender;
                this.UserType = user.UserType;
                this.Address = user.Address;
                this.Email = user.Email;
                this.PhoneNumber = user.PhoneNumber;
                this.HeaderUrl = user.HeaderUrl;
                this.Avatar = user.Avatar;
                this.Remark = user.Remark;
                this.ConcurrencyStamp = user.ConcurrencyStamp;
                this.SecurityStamp = user.SecurityStamp;
            }
        }

        /// <summary>
        /// 唯一编码(内部编码)
        /// </summary>
        public string UniqueCode { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string FullName { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 登录账户
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        public string Email { get; set; }
        public string PhoneNumber { get; set; }


        /// <summary>
        /// 性别
        /// </summary>
        public string Gender { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public int UserType { get; set; }

        /// <summary>
        /// 用户头像远程URL
        /// </summary>
        public string HeaderUrl { get; set; }

        /// <summary>
        /// 用户头像本地数据
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 用户主页http地址
        /// </summary>
        public string HomePageURL { get; set; }

        /// <summary>
        /// 所属省份
        /// </summary>
        public int? ProvinceID { get; set; }

        /// <summary>
        /// 所属城市
        /// </summary>
        public int? CityID { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string Remark { get; set; }

        public string ConcurrencyStamp { get; set; }
        public string SecurityStamp { get; set; }
    }
}
